package org.gd.hellojaxb.privat24.commons;

import org.gd.hellojaxb.adapters.DoubleAdaptersFactory;

import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlRootElement(name = "BonusPlus")
@XmlAccessorType(XmlAccessType.FIELD)
public class CommonsBonusPlus {

    @XmlAttribute(name = "Currency")
    private String currency;
    @XmlAttribute(name = "BonusSumm")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double bonusAmount;

    public CommonsBonusPlus() {
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Double getBonusAmount() {
        return bonusAmount;
    }

    public void setBonusAmount(Double bonusAmount) {
        this.bonusAmount = bonusAmount;
    }
}
